package com.wyh.service.serviceImpl.g3serviceimpl;

import com.wyh.domain.po.g3po.G3Contract;
import com.wyh.mapper.g3mapper.G3ContractMapper;
import com.wyh.service.g3service.ContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/05/22/10:29
 **/
@Service("g3ContractService")
public class ContractServiceImpl implements ContractService {
    @Autowired
    G3ContractMapper g3ContractMapper;
    @Override
    public List<G3Contract> getAllContracts() {
        return g3ContractMapper.getAllContract();
    }

    @Override
    public G3Contract getContractById(Integer id) {
        return g3ContractMapper.getContractById(id);
    }

    @Override
    public List<G3Contract> getContractByCustomerId(Integer customerid) {
        return g3ContractMapper.getContractByCustomerId(customerid);
    }
}
